package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券使用记录对象 shop_coupon_used_record
 * 
 * @author Alan Zhang
 * @date 2021-09-14
 */
public class ShopCouponUsedRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 使用优惠码ID */
    private Long id;

    /** 使用优惠码的用户 */
    @Excel(name = "使用优惠码的用户")
    private Long usedUserId;

    /** 使用优惠码的用户ID */
    @Excel(name = "使用优惠码的用户ID")
    private String usedUserNickname;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long usedOrderId;

    /** 支付的ID */
    @Excel(name = "支付的ID")
    private Integer userPaymentId;

    /** 优惠码ID */
    @Excel(name = "优惠码ID")
    private Long codeId;

    /** 优惠码名称 */
    @Excel(name = "优惠码名称")
    private String code;

    /** 关联优惠券ID */
    private Long couponId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsedUserId(Long usedUserId) 
    {
        this.usedUserId = usedUserId;
    }

    public Long getUsedUserId() 
    {
        return usedUserId;
    }
    public void setUsedUserNickname(String usedUserNickname) 
    {
        this.usedUserNickname = usedUserNickname;
    }

    public String getUsedUserNickname() 
    {
        return usedUserNickname;
    }
    public void setUsedOrderId(Long usedOrderId) 
    {
        this.usedOrderId = usedOrderId;
    }

    public Long getUsedOrderId() 
    {
        return usedOrderId;
    }
    public void setUserPaymentId(Integer userPaymentId) 
    {
        this.userPaymentId = userPaymentId;
    }

    public Integer getUserPaymentId() 
    {
        return userPaymentId;
    }
    public void setCodeId(Long codeId) 
    {
        this.codeId = codeId;
    }

    public Long getCodeId() 
    {
        return codeId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("usedUserId", getUsedUserId())
            .append("usedUserNickname", getUsedUserNickname())
            .append("usedOrderId", getUsedOrderId())
            .append("userPaymentId", getUserPaymentId())
            .append("codeId", getCodeId())
            .append("code", getCode())
            .append("couponId", getCouponId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
